home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
gnustuff
/
tos
/
bash
/
bash-108
/
bash-108.zoo
/
bash-1.08
/
quit.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-10-23
|
423 b
|
14 lines
/* quit.h -- How to handle SIGINT gracefully. */
#ifndef __QUIT__
#define __QUIT__
/* Non-zero means SIGINT has already ocurred. */
extern int interrupt_state;
sighandler throw_to_top_level ();
/* Macro to call a great deal. SIGINT just sets above variable. When
it is safe, put QUIT in the code, and the "interrupt" will take place. */
#define QUIT if (interrupt_state) throw_to_top_level ()
#endif /* __QUIT__ */